package com.gnerv.sylvanas.framework.plugin.logger.autoconfigure;

import com.gnerv.sylvanas.framework.plugin.logger.service.BusinessLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author Gnerv LiGen
 */
@Slf4j
@Configuration
@ComponentScan(value = "com.gnerv.sylvanas.framework.plugin.logger")
@EnableConfigurationProperties(FrameworkLogConfigProperties.class)
public class FrameworkLogAutoConfiguration {

    public FrameworkLogAutoConfiguration(){
    }

    @Bean
    public BusinessLogService businessLogService() {
        return new BusinessLogService("log_info");
    }

}
